import request from '@/util/request'

const timeout = 60 * 1000

export function insertOrUpdateLinkageTriggerToDevice(data) {
  return request({
    url: '/iot/device/linkage/trigger/insertOrUpdateToDevice',
    method: 'post',
    timeout: timeout,
    data
  })
}

export function insertOrUpdateLinkageTriggerToServer(data) {
  return request({
    url: '/iot/device/linkage/trigger/insertOrUpdateToServer',
    method: 'post',
    data
  })
}

export function listLinkageTrigger(data) {
  return request({
    url: '/iot/device/linkage/trigger/list',
    method: 'post',
    data
  })
}
